//先合并后排序
function a1(arr1,arr2){
    var ss=arr1.concat(arr2).sort((arr1,arr2)=>arr1-arr2)
    return ss
}
//合并时排序
function a2(arr1,arr2){
    var ss=[]
    var i=0,j=0;
    while(i<arr1.length||j<arr2.length){
        ss.push(i==arr1.length?arr2[j++]:(j==arr2.length?arr1[i++]:(arr1[i]<arr2[j]?arr1[i++]:arr2[j++])))
    }
    return ss
}